package org.mtmi.ui.controls;

import org.mtmi.ui.M;
import org.mtmi.ui.scenes.IAnimated;
import org.mtmi.ui.scenes.Scene;

/**
 * Define a vector drawn toggle button,  
 */
public class ToggleButton extends Button implements IAnimated
{

	public ToggleButton( Scene scene, int flags  ) {
		this( scene, -1, false, flags );
	}
	
	public ToggleButton( Scene scene, int groupId, int flags ) {
		this( scene, groupId, false, flags );
	}
	
	public ToggleButton( Scene scene, int groupId, boolean checked, int flags ) {
		super( scene, flags|M.TOGGLE );
		setGroupId( groupId );
		isChecked = checked;
	}
	
}
